package com.software.cm.spring.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * Created by mcan on 29/11/2014.
 */

@Entity
@Table(name="Employee")
public class Employee
{
    @Id
    @Column(name = "Id",unique = true,nullable = false)
    private long employeeId;

    @Column(name = "Name",unique = false,nullable = false)
    private String employeeName;

    @Column(name = "HireDate",unique = false,nullable = true)
    private Date employeeHireDate;

    @Column(name = "Salary",unique = false,nullable = true)
    private double employeeSalary;

    public long getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(long employeeId) {
        this.employeeId = employeeId;
    }

    public String getEmployeeName() {
        return employeeName;
    }

    public void setEmployeeName(String employeeName) {
        this.employeeName = employeeName;
    }

    public Date getEmployeeHireDate() {
        return employeeHireDate;
    }

    public void setEmployeeHireDate(Date employeeHireDate) {
        this.employeeHireDate = employeeHireDate;
    }

    public double getEmployeeSalary() {
        return employeeSalary;
    }

    public void setEmployeeSalary(double employeeSalary) {
        this.employeeSalary = employeeSalary;
    }
}
